/*
============================================================================
FileName	:	XQChatRosterView.h
Author		:	liyake
Website		:	http://www.liyake.com
Create Data	:	2012-03-17 11:41
Change Data	:	2012-03-17 11:41 by liyake
Detail		:	The socket client of xqchat application
============================================================================
*/
#ifndef _XQCHAT_ROSTER_VIEW_H_
#define _XQCHAT_ROSTER_VIEW_H_

#include <QGraphicsView>
#include "XQChatRosterScene.h"

namespace XQChat
{
	class CXQChatRosterView : public QGraphicsView
	{
		Q_OBJECT
	public:
		CXQChatRosterView(QWidget * parent = 0);
		CXQChatRosterView(QGraphicsScene * scene, QWidget * parent = 0);
		~CXQChatRosterView(void);

	public:
		void updateRoster(CXQChatRoster* pRoster);

	protected:
		void keyPressEvent(QKeyEvent *event);
		void wheelEvent(QWheelEvent *event);

		void scaleView(qreal scaleFactor);

	private:
		CXQChatRosterScene* m_pScene;
	};
}

#endif //_XQCHAT_ROSTER_VIEW_H_